# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=py3-tlslite-ng
pkgver=0.7.6
pkgrel=6
pkgdesc="Pure python implementation of SSL and TLS"
url="https://github.com/tlsfuzzer/tlslite-ng"
arch="noarch"
license="LGPL-2.1-only"
depends="py3-ecdsa"
makedepends="py3-setuptools"
options="!check"  # requires client/server
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/tlsfuzzer/tlslite-ng/archive/v$pkgver.tar.gz"
builddir="$srcdir/tlslite-ng-$pkgver"

# secfixes:
#   0.7.6-r0:
#     - CVE-2020-26263

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir"
}

sha512sums="
c4fcdfaf45b40cd85fee26657956651b781d41f9c9f35a8a927d00c9f13cdcfae1b4f7a594d0d07d08d477b19480af152988c6075dc9f564215761bcf9857119  py3-tlslite-ng-0.7.6.tar.gz
"
